﻿using System;

namespace UserInterface.Primitives
{
	public class GridBand
	{
        internal int NextAuto;
        internal int NextPercent;
		internal float InitialDesiredLength;
		internal float AdditionalDesiredLength;
        internal float AvailableLength;
		internal GridField GridLayout;
        internal float End;

		public GridBand()
		{
			this.Unit = GridBandUnit.Auto;
			this.Maximum = float.PositiveInfinity;
		}

		public GridBandUnit Unit { get; set; }
		public float Length { get; set; }

		public float Minimum { get; set; }
		public float Maximum { get; set; }

        internal float DesiredLength { get { return this.InitialDesiredLength + this.AdditionalDesiredLength; } }
    }
}
